package com.adjaisd.scarecrow.service;

import com.adjaisd.scarecrow.entity.Board;
import com.adjaisd.scarecrow.vo.BoardQuotaVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author adjaisd
 * @since 2022-04-28
 */
public interface BoardService extends IService<Board> {

    List<Board> getAllBoard(Long userId);

    Board getBoard(Long userId, String name, String quotaName, String unit);

    boolean addBoard(Board board);

    BoardQuotaVO getPreviewData(Long userId, String quotaName, String unit, String deviceIdList, String beg, String end, int type);

    BoardQuotaVO getBoardData(String boardId, String beg, String end, int type);

}
